<ion-view view-title="支付方式" hide-tabs="true">
  <ion-content class="content ionic-pseudo">
    <div class="item item-divider"><b>请选择支付方式</b></div>
    <!--<ion-radio ng-model="choice" ng-value="'支付宝支付'">支付宝支付</ion-radio> -->
    <ion-list ng-repeat="card in cards">
      <ion-radio class="item item-avatar" ng-model="trdata.paychoice" ng-click="backPayment(card.id,card.bankName,card.cardNumber)" ng-value="card.id">
        <img ng-src="{{card.bankpng}}" alt="{{card.bankName}}">
        <h2>{{card.bankName}}</h2>
        <p ng-if="card.cardNumber.length==16">****&nbsp;&nbsp;****&nbsp;&nbsp;****&nbsp;&nbsp;{{card.cardNumber | limitTo:-4}}</p>
        <p ng-if="card.cardNumber.length==17">****&nbsp;&nbsp;****&nbsp;&nbsp;****&nbsp;&nbsp;*{{card.cardNumber | limitTo:-4}}</p>
        <p ng-if="card.cardNumber.length==18">****&nbsp;&nbsp;****&nbsp;&nbsp;****&nbsp;&nbsp;**{{card.cardNumber | limitTo:-4}}</p>
        <p ng-if="card.cardNumber.length==19">****&nbsp;&nbsp;****&nbsp;&nbsp;****&nbsp;&nbsp;***{{card.cardNumber | limitTo:-4}}</p>
      </ion-radio> 
    </ion-list>
    <!-- 
    没有可用的银行卡，请到银行卡管理添加银行卡
     -->
    <button class="button button-full button-positive" ng-click="add_bankcard()">添加银行卡</button>
  	</ion-content>
</ion-view>